package com.fun_ordering.mapper;

import com.fun_ordering.pojo.FoOrder;
import com.fun_ordering.pojo.FoOrderExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface FoOrderMapper {
    int countByExample(FoOrderExample example);

    int deleteByExample(FoOrderExample example);

    int deleteByPrimaryKey(Integer orderId);

    int insert(FoOrder record);

    int insertSelective(FoOrder record);

    List<FoOrder> selectByExample(FoOrderExample example);

    FoOrder selectByPrimaryKey(Integer orderId);

    int updateByExampleSelective(@Param("record") FoOrder record, @Param("example") FoOrderExample example);

    int updateByExample(@Param("record") FoOrder record, @Param("example") FoOrderExample example);

    int updateByPrimaryKeySelective(FoOrder record);

    int updateByPrimaryKey(FoOrder record);

    void orderAlready(Integer orderId);

    void payAlready(Integer outTradeNo);

    void refundAlready(Integer outTradeNo);
}